package com.trivia.restResponses

class RestResponse {

    protected String status
    protected String description
    protected String intermediateXML

    def toXML(){
        String xml="<?xml version=\"1.0\"?>\n<data>"
        xml+="<status>"+this.status+"</status><description>"+this.description+"</description>"
        xml+=ownProperties()
        xml+="</data>"
        return xml;
    }

    def ownProperties(){
        return ""
    }
}

